﻿namespace WMS6.Services
{
    using System;
    using System.ServiceModel;
    using WMS6.Common;
    using WMS6.DataEntity;

    [ServiceContract(Namespace="WMS6.Services")]
    public interface ILoginService
    {
        [OperationContract, ServiceKnownType(typeof(PreferenceProfileInfo)), FaultContract(typeof(FaultDetail))]
        PreferenceProfileInfo GetPreferenceProfileByUserID(string userID);
        [ServiceKnownType(typeof(UserMstInfo)), OperationContract, FaultContract(typeof(FaultDetail))]
        UserMstInfo GetUserInfoByID(string userID);
        [FaultContract(typeof(FaultDetail)), OperationContract, ServiceKnownType(typeof(SysLoginLogInfo))]
        void InsertSysLoginLogInfo(SysLoginLogInfo sysLoginLogInfo);
        [ServiceKnownType(typeof(PreferenceProfileDetailInfo)), FaultContract(typeof(FaultDetail)), OperationContract]
        string InsertUserPreference(PreferenceProfileInfo preferencePrifile);
    }
}

